﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HU8.Web.FileExplorer.FileExplorer.Default" %>

<%@ Import Namespace="HU8.Web.FileExplorer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="UserControls/ContentList.ascx" TagName="content_list" TagPrefix="fe" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../webjs/core/config.js" type="text/javascript"></script>
    <style type="text/css">
        #head
        {
        }
        
        .fm 
        {
            clear: both;
            position: relative;
            z-index: 297;
        }
        
        .s_ipt_wr
        {
            width: 380px;
            height: 30px;
            display: inline-block;
            margin-right: 5px;
            background-position: 0 -96px;
            border: 1px solid #b6b6b6;
            border-color: #7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;
            vertical-align: top;
        }
        
        .s_ipt
        {
            width: 370px;
            height: 22px;
            font: 16px/22px arial;
            margin: 5px 0 0 7px;
            padding: 0;
            background: #fff;
            border: 0;
            outline: 0;
            -webkit-appearance: none;
        }
        #dialog_id .datagrid-body td, #dialog_id .datagrid-footer td , #dialog_id  .datagrid-header td{
        border-width: 0 0px 0px 0;
        border-style: none;
        }
          #dialog_id .datagrid-body
        {
            overflow-x:hidden;
        }
         #dialog_id .datagrid-header
        {
            display:none;
        }
        /* 去掉IE10自带的输入框XX */
        input:-ms-clear
        {
            display:none;
        }
          input::-ms-clear{display:none;}
        
        .bg
        {
            background-image: url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_4879d3b8.png);
            background-repeat: no-repeat;
            _background-image: url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5a07887b.gif);
            background-repeat: no-repeat;
        }
        
        .s_btn
        {
            width: 95px;
            height: 32px;
            padding-top: 2px;
            font-size: 14px;
            padding: 0;
            background-color: #ddd;
            background-position: 0 -48px;
            border: 0;
            cursor: pointer;
        }
        
        .s_btn_wr
        {
            width: 97px;
            height: 34px;
            display: inline-block;
            background-position: -120px -48px;
            z-index: 0;
            vertical-align: top;
        }
        .t
        {
            font-weight: normal;
            font-size: medium;
            margin-bottom: 1px;
        }
        
        .ec_nowrap
        {
            white-space: nowrap;
            overflow: hidden;
        }
        
      
        
        a:-webkit-any-link
        {
            color: -webkit-link;
            text-decoration: underline;
            cursor: auto;
        }
        
        .ec_desc
        {
            line-height: 19px;
        }
        
        .ec_font_small
        {
            font-size: small;
        }
        
        .ec_meta
        {
            margin-top: 1px;
            line-height: 18px;
        }
        
        .ec_date, .ec_url
        {
            color: green;
        }
        
        #content_left
        {
            width: 636px;
            float: left;
            padding-left: 15px;
        }
        
        h3
        {
            display: block;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        
         a:link,
         a:visited
          {
           color:Blue;
           text-decoration:none;
        }
        a:hover,
        a:active
         {
          color:#000000;
          text-decoration:underline;
        }
        a:active {
         color:#FFFFFF;
         text-decoration:none;
        }
        a.space
        {
            color:Black;
            font-weight:bold;
            text-decoration:none;
        }
      
        #commendcontainer
        {
            padding: 10px;
            width:80%;
            margin: 15px 0;
           
            border: 1px solid #4c95c7;
            height: 30px;
 
        }
        .search_header
        {
            height: 30px;
        }
        .search_header_left
        {
            float: left;
            width: 240px;
        }
        .search_header_right
        {
            margin-left: 250px;
            padding-right: 15px;
            line-height: 28px;
        }
        ul.search_tab_li
        {
            list-style: none;
            padding: 0;
            margin: 0;
            height: 24px;
        }
        ul.search_tab_li
        {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        ul.search_tab_li li
        {
            cursor: pointer;
            float: left;
            width: 110px;
            border: 1px solid #4c95c7;
            border-bottom: none;
            text-align: center;
            background: #dbe5ee;
            line-height: 29px;
            height: 29px;
        }
        ul.search_tab_li li.current
        {
            background: #f9fcfe;
        }
        .search_list
        {
            padding: 10px;
            border: 1px solid #4c95c7;
        }
        #searchCount
        {
            color: #828080;
            text-align: right;
        }
        
   
        .search_input
        {   
            width:720px;
            height:30px;
            float: left;
           
        }
  

.bordered {
    border: solid #ccc 1px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 1px 1px #ccc; 
    -moz-box-shadow: 0 1px 1px #ccc; 
    box-shadow: 0 1px 1px #ccc;         
}

.bordered tr:hover {
    background: #fbf8e9;
    -o-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;     
}    
    
.bordered td, .bordered th {
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding: 10px;
    text-align: left;    
}

.bordered th {
    background-color: #dce9f9;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
    background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:    -moz-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:     -ms-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:      -o-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:         linear-gradient(top, #ebf3fc, #dce9f9);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; 
    -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;        
    border-top: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.5); 
}

.bordered td:first-child, .bordered th:first-child {
    border-left: none;
}

.bordered th:first-child {
    -moz-border-radius: 6px 0 0 0;
    -webkit-border-radius: 6px 0 0 0;
    border-radius: 6px 0 0 0;
}

.bordered th:last-child {
    -moz-border-radius: 0 6px 0 0;
    -webkit-border-radius: 0 6px 0 0;
    border-radius: 0 6px 0 0;
}

.bordered th:only-child{
    -moz-border-radius: 6px 6px 0 0;
    -webkit-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
}

.bordered tr:last-child td:first-child {
    -moz-border-radius: 0 0 0 6px;
    -webkit-border-radius: 0 0 0 6px;
    border-radius: 0 0 0 6px;
}

.bordered tr:last-child td:last-child {
    -moz-border-radius: 0 0 6px 0;
    -webkit-border-radius: 0 0 6px 0;
    border-radius: 0 0 6px 0;
}

        #search_type
        {
            <%--background:#fff;--%>
            width: 70px;
            height: 20px;
            padding:7px 5px 3px;
            position: absolute;            
            top: 1px;
            left: 300px;
            color:#666666;
        }
          a.kongjian
        {
            color:Black;
            font-weight:bold;
            text-decoration:none;
        }
        a.kongjian:hover,a.kongjian:link, a.kongjian:visited
        {
            color:Black;
            font-weight:bold;
            text-decoration:none;
        }
    </style>
    
    <script type="text/javascript">
        <asp:Literal runat="server" ID="litScript"></asp:Literal>
        var lang = {};
    </script>
    <!-- JQuery -->
    <script type="text/javascript" src="Scripts/jquery-1.6.4.min.js"></script>
    <%--<script type="text/javascript" src="../weblib/jquery/jquery-1.8.0.min.js"></script>--%>
    <script src="easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="Scripts/jquery-ui-1.8.16.custom.min.js"></script>
    <!-- Context menu -->
    <link type="text/css" rel="Stylesheet" href="Scripts/context_menu/style.css" />
    <script type="text/javascript" src="Scripts/context_menu/jquery.contextmenu.js"></script>
    <!-- Wijmo dialog -->
    <link type="text/css" rel="Stylesheet" href="Scripts/wijmo-dialog/ui-themes/aristo/jquery-wijmo.css" />
    <link type="text/css" rel="Stylesheet" href="Scripts/wijmo-dialog/ui-themes/wijmo/jquery.wijmo.wijdialog.css" />
    <script type="text/javascript" src="Scripts/wijmo-dialog/jquery.wijmo-open.1.4.1.min.js"></script>
    <!-- HU8 Libs -->
    <script type="text/javascript" src="Scripts/hu8.libs.js"></script>
    <!-- HU8 Box -->
    <script type="text/javascript" src="Scripts/hu8-box/languages/<%: config.Language %>.js"></script>
    <script type="text/javascript" src="Scripts/hu8-box/hu8.box.js"></script>
    <!-- HU8 Logs -->
    <script type="text/javascript" src="Scripts/hu8-log/languages/<%: config.Language %>.js"></script>
    <link type="text/css" rel="Stylesheet" href="Scripts/hu8-log/style.css" />
    <script type="text/javascript" src="Scripts/hu8-log/hu8.log.js"></script>
    <!-- HU8 File Explorer -->
    <script type="text/javascript" src="Scripts/hu8-fileexplorer/languages/<%: config.Language %>.js"></script>
    <script type="text/javascript" src="Scripts/hu8-fileexplorer/hu8.fm.v0.2.js"></script>
    <link type="text/css" rel="Stylesheet" href="Scripts/hu8-fileexplorer/style.css" />
    <link href="jqueryFileTree/jqueryFileTree.css" rel="stylesheet" type="text/css" />
    <script src="jqueryFileTree/jqueryFileTree.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../weblib/jquery.easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../weblib/jquery.easyui/themes/icon.css" />
    <link href="../weblib/skins/main.css" rel="stylesheet" type="text/css" />
    <link href="Styles/flick/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
    <script src="../weblib/jquery/jquery.adaptor.js" type="text/javascript"></script>
    <script src="Scripts/getTargetTree.js" type="text/javascript"></script>

<%--    <script src="Scripts/superfish-master/dist/js/superfish.js" type="text/javascript"></script>
    <script src="Scripts/superfish-master/dist/js/hoverIntent.js" type="text/javascript"></script>
    <link href="Scripts/superfish-master/dist/css/superfish.css" rel="stylesheet" type="text/css" />--%>

    <link href="Scripts/pro_drop_1/pro_drop_1.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/pro_drop_1/stuHover.js" type="text/javascript"></script>



    <script type="text/javascript">

        function reAload_UnAuditedData() {
            var groupName = $(this).attr("content");
            filemanager.load_UnauditedData(groupName);
        }
        var g_sSpaceType = "individual";
        var g_sGroupId = "";
        var g_isDataManage = false;

        $(document).ready(function () {

            $("#current_space_name")[0].innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + $("#hiddenSpace_Name").val();
            var spaceType = $("#hiddenType_Name_IsAdmin").val();
            if (spaceType) {
                spaceType = spaceType.split('|');
                if (spaceType[0] == "group") {
                    g_sSpaceType = "group";
                    g_sGroupId = spaceType[1];
                    if ("manage" == spaceType[2]) {
                        g_isDataManage = true;


                    }
                }
                else if (spaceType[0] == "project") {
                    g_sSpaceType = "project";
                }
                else if (spaceType[0] == "individual") {
                    g_sSpaceType = "individual";
                }
            }

            $(".space").click(function () {
                var value = $(this).attr("content");
                value = value + "|" + $(this)[0].innerHTML;
                $("#hiddenType_Name_IsAdmin").val(value);
                document.forms[0].submit();
            });
            var newValue = true; // Type:  any
            //            $("#dialog_userinfo").wijdialog();
            //            $("#dialog_userinfo").wijdialog("close");
            //$("#dialog_userinfo").wijdialog("option", "hide", newValue);
            //            $("#dialog_userinfo").dialog({ autoOpen: false });
            //            $("#dialog_userinfo").dialog("close");

            $("#a_userInfo").click(function () {
                newValue = false;
                //$("#dialog_userinfo").wijdialog("option", "hide", newValue);
                //                console.log("test");
                //                $("#dialog_userinfo").wijdialog("open");
            });
            $("#a_exit").click(function () {

                $.ajax({
                    url: "/tadongserviceweb/Logoutauth.aspx",
                    type: 'post',
                    dataType: 'json',
                    data: { "data": $.oemCookie() },
                    success: function () {
                        $.cookieClear();
                        location.href = "/tadongweb/login.html";
                    }
                });

            });
            $("#clickGIS").click(function () {
                window.parent.window.clickGIS();

            });
            $("#clickSearch").click(function () {
                window.parent.window.clickSearch();

            });
            $("#clickSpace").click(function () {
                window.parent.window.clickSpace();

            });
            $("#classfile").click(function () {
                var user_id = getCookie('_userId_');
                var spaceType = $("#hiddenType_Name_IsAdmin").val();
                var Team_ID = "";
                spaceType = "'" + spaceType + "'";

                if (spaceType) {
                    spaceType = spaceType.split('|');
                    if (spaceType[0] == "'project") {
                        spaceType = spaceType[0];
                        window.open("../SpaceClassView/mainform.html?spaceType=30&forldId=0&user_id=" + user_id, "", "");
                    }
                    else if (spaceType[0] == "'group") {
                        Team_ID = spaceType[1];
                        window.open("../SpaceClassView/mainform.html?spaceType=20&forldId=0&teamId=" + Team_ID + "&user_id=" + user_id, "", "");
                    }
                    else {
                        window.open("../SpaceClassView/mainform.html?spaceType=10&forldId=0&user_id=" + user_id, "", "");
                    }
                }



            });
            $('#file_tree').fileTree({
                root: '',
                script: 'jqueryFileTree/connectors/jqueryFileTree.aspx',
                expandSpeed: 1000,
                collapseSpeed: 1000,
                multiFolder: false,
                baseUrl: $("#baseUrl").val()
            }, function (file) {
                var div = $(".ui-accordion-content")[0];
                $(div).scrollLeft(1000);
                // alert(file);
            });

            $('#file_tree li').click(function () {
                alert('sdf');
                this.css("background", "#BDF");
            });


            //我的提交
            $('.mysubmit').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSpaceDesc").value = "desc";
                var userId = $(this).attr("content");
                var status = "1";
                filemanager.load_MySubmitData(userId);

            });
            //个人我的退回
            $('.mysubmitback').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSpaceDesc").value = "desc";
                var userId = $(this).attr("content");
                var status = "2";
                filemanager.load_MyBackData(userId);

            });
            //我的共享，个人空间
            $('.myshare').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSpaceDesc").value = "desc";
                var userId = $(this).attr("content");
                filemanager.load_shareMyView(userId);

            });
            //个人空间回收站Recycle
            $('.Recycle').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSizeDesc").value = "desc";
                var userId = $(this).attr("content");
                filemanager.load_RecycleData(userId);

            });

            //课题组我的提交
            $('.submit_project').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                var teamId = $(this).attr("content");
                filemanager.load_TeamMySubmitData(teamId);

            });
            //课题组我的退回
            $('.back_project').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                var teamId = $(this).attr("content");
                filemanager.load_TeamMyBackData(teamId);

            });
            //查看共享,课题组
            $('.checkshare_group').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                var groupName = $(this).attr("content");
                filemanager.load_shareView(groupName);
                //filemanager.load_AuditedData(groupName);
            });
            //待审核,课题组
            $('.preverify_group').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                var groupName = $(this).attr("content");
                filemanager.load_UnauditedData(groupName);
            });
            //已审核,课题组
            $('.afterverify_group').click(function () {
                // $(".cmd-home").click();
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                var groupName = $(this).attr("content");
                filemanager.load_AuditedData(groupName);

            });
            //课题组空间回收站Recycle
            $('.TeamRecycle').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSizeDesc").value = "desc";
                var teamId = $(this).attr("content");
                filemanager.load_TeamRecycleData(teamId);

            });

            //待审核，项目库
            $('.preverify_project').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                filemanager.load_ProjectUnauditedData();

            });
            //已审核，项目库
            $('.afterverify_project').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                filemanager.load_XMKAuditedData();

            });
            //查看共享，项目库
            $('.checkshare_project').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortUserDesc").value = "desc";
                filemanager.load_shareXmkShare();
            });
            //项目库空间回收站Recycle
            $('.ProjectRecycle').click(function () {
                document.getElementById("hideSortType").value = "time";
                document.getElementById("hideSortTimeDesc").value = "desc";
                document.getElementById("hideSortSizeDesc").value = "desc";
                filemanager.load_ProjectRecycleData();

            });
            $('.search').click(function () {
                location.href = "../Views/DataSearch/CommonSearchView.aspx";
            });
            if ($('#hidden_identity').val() == "visit") {
                $(".topbg").hide();
                $('.cmd-newdirectory').hide(); //cmd-uponelevel
                $('.cmd-upload').hide();
            }
            if (g_sSpaceType == "project") {
                //   $('.cmd-newdirectory').hide();cmd-uponelevel
                $('.cmd-upload').hide();
                $('.cmd-uponelevel').hide();
                $('#pag').show();
            } else {
                //$('#pag').hide();
            }

            $(".main").height($(window).height() - $(".header").height());
            var s = $(".main > div")[1];
            $(s).height($(".main").height() - $(".content-menu").height());
            $("#file_tree").height($(window).height() - $(".header").height() - 200);


            $('#pag').pagination({
                // total: articleJSONArr.length, //总的记录数
                beforePageText: '',
                afterPageText: '/{pages}',
                pageSize: 20,
                pageList: [10, 20, 30, 40],
                showPageList: false,
                onSelectPage: function (pageNumber, pageSize) {//选择相应的页码时刷新显示内容列表。
                    g_pageNum = pageNumber;
                    g_pageSize = pageSize;
                    isPag = true;
                    var user_id = "";
                    var team_id = "";
                    var spaceType = $("#hiddenType_Name_IsAdmin").val();
                    if (spaceType) {
                        spaceType = spaceType.split('|');
                        if (spaceType[0] == "individual") {
                            user_id = spaceType[1];
                        }
                        else if (spaceType[0] == "group") {
                            team_id = spaceType[1];
                        }
                    }
                    var type = document.getElementById("hidType").value;

                    if (type == "perMySubmit") {
                        filemanager.load_MySubmitData(user_id);
                    }
                    else if (type == "MyBackData") {
                        filemanager.load_MyBackData(user_id);
                    }
                    else if (type == "shareMyView") {
                        filemanager.load_shareMyView(user_id);
                    }
                    else if (type == "RecycleData") {
                        filemanager.load_RecycleData(user_id);
                    }

                    else if (type == "teamMySubmit") {
                        var teamId = $(this).attr("content");
                        filemanager.load_TeamMySubmitData(team_id);
                    }
                    else if (type == "teamMyBackData") {
                        filemanager.load_TeamMyBackData(team_id);
                    }
                    else if (type == "teamShareView") {
                        var teamId = $(this).attr("content");
                        filemanager.load_shareView(teamId);
                    }
                    else if (type == "teamUnauditedData") {
                        var teamId = $(this).attr("content");
                        filemanager.load_UnauditedData(team_id);
                    }
                    else if (type == "teamAuditedData") {
                        var teamId = $(this).attr("content");
                        filemanager.load_AuditedData(team_id);
                    }
                    else if (type == "TeamRecycleData") {
                        filemanager.load_TeamRecycleData(team_id);
                    }

                    else if (type == "xmkShareView") {
                        filemanager.load_shareXmkShare();
                    }
                    else if (type == "xmkUnauditedData") {
                        filemanager.load_ProjectUnauditedData();
                    }
                    else if (type == "xmkAuditedData") {
                        filemanager.load_XMKAuditedData();
                    }
                    else if (type == "ProjectRecycleData") {
                        filemanager.load_ProjectRecycleData();
                    }

                    else {
                        document.getElementById("hidType").value = "";
                        filemanager.load_contents(null, false);
                    }
                    isPag = false;
                }
            });

        });

        var g_pageNum = null;
        var g_pageSize = null;
        var g_path = null;
        var isPag = false;





    </script>
     <script type="text/javascript">
         (function ($) {
             $.chromatable = {
                 defaults: {
                     width: "900px",
                     height: "300px",
                     scrolling: "yes"
                 }
             };
             $.fn.chromatable = function (options) {
                 var options = $.extend({}, $.chromatable.defaults, options);
                 return this.each(function () {
                     var $this = $(this);
                     var $uniqueID = $(this).attr("ID") + ("wrapper");
                     $(this).css('width', options.width).addClass("_scrolling");
                     $(this).wrap('<div class="scrolling_outer"><div id="' + $uniqueID + '" class="scrolling_inner"></div></div>');
                     $(".scrolling_outer").css({ 'position': 'relative' });
                     $("#" + $uniqueID).css(

	 { 'border': '1px solid #CCCCCC',
	     'overflow-x': 'hidden',
	     'overflow-y': 'auto',
	     'padding-right': '17px'
	 });

                     $("#" + $uniqueID).css('height', options.height);
                     $("#" + $uniqueID).css('width', options.width);
                     $(this).before($(this).clone().attr("id", "").addClass("_thead").css(
		{ 'width': 'auto',
		    'display': 'block',
		    'position': 'absolute',
		    'border': 'none',
		    'border-bottom': '1px solid #CCC',
		    'top': '1px'
		}));
                     $('._thead').children('tbody').remove();
                     $(this).each(function ($this) {
                         if (options.width == "100%" || options.width == "auto") {
                             $("#" + $uniqueID).css({ 'padding-right': '0px' });
                         }
                         if (options.scrolling == "no") {
                             $("#" + $uniqueID).before('<a href="#" class="expander" style="width:100%;">Expand table</a>');
                             $("#" + $uniqueID).css({ 'padding-right': '0px' });
                             $(".expander").each(
			function (int) {
			    $(this).attr("ID", int);
			    $(this).bind("click", function () {
			        $("#" + $uniqueID).css({ 'height': 'auto' });
			        $("#" + $uniqueID + " ._thead").remove();
			        $(this).remove();
			    });
			});
                             $("#" + $uniqueID).resizable({ handles: 's' }).css("overflow-y", "hidden");
                         }
                     });
                     $curr = $this.prev();
                     $("thead:eq(0)>tr th", this).each(function (i) {
                         $("thead:eq(0)>tr th:eq(" + i + ")", $curr).width($(this).width());
                     });
                     if (options.width == "100%" || "auto") {
                         $(window).resize(function () {
                             resizer($this);
                         });
                     }
                 });
             };
             function resizer($this) {
                 $curr = $this.prev();
                 $("thead:eq(0)>tr th", $this).each(function (i) {
                     $("thead:eq(0)>tr th:eq(" + i + ")", $curr).width($(this).width());
                 });
             };
         })(jQuery);
</script>
</head>

<body style="height: 100%; overflow: hidden; margin:0px; padding:0px" >
    <iframe id="fileDownFrame" src="" style="display: none; visibility: hidden;"></iframe>
    <form id="form1" runat="server">
      <asp:HiddenField ID="hiddenType_Name_IsAdmin" runat="server" />
      <asp:HiddenField ID="hiddenSpace_Name" runat="server" />
      <asp:HiddenField ID="hidFolderID" runat="server" />
      <div class="body" style="height: 100%; background: white">
        <div class="header">
            <asp:HiddenField ID="baseUrl" runat="server" />
            <asp:HiddenField ID="hidden_identity" runat="server" />
            <asp:HiddenField ID="hidType" runat="server" />
            <asp:HiddenField ID="hideSortType" runat="server" />
            <asp:HiddenField ID="hideSortTimeDesc" runat="server" />
            <asp:HiddenField ID="hideSortSpaceDesc" runat="server" />
            <asp:HiddenField ID="hideSortUserDesc" runat="server" />
            <asp:HiddenField ID="hideSortSizeDesc" runat="server" />
           <div id="head" style="width: 100%; height: 71px;">
             <div style="margin: 8px 0px 0px 0px; height: 63px;">
            <div style="text-align: left; width: 820px; height: 63px; clear: both;">
                <div class="sarch_logo" style="text-align: center; width: 195px; height: 56px; float: left;
                    overflow: hidden;">
                    <img src="../weblib/skins/images/search_logo5.png" height="54" />
                </div>
                <div style="width: 615px; height: 56px; float: left; overflow: hidden; margin-bottom: 0px;">
                    <div style="height: 18px; width: 604px; margin-left: 20px; margin-bottom: 5px;">
                        <a href="#" class="search" id="clickSearch"><span style="font-size: 14px;"><%: lang.Get("SPACE_Search") %></span></a>&nbsp;&nbsp;
                        <a href="#" class="space" id="clickSpace"><span style="font-size: 14px;"><%: lang.Get("SPACE_Zone") %></span></a>&nbsp;&nbsp;
                        <a href="#" class="GIS" id="clickGIS"><span style="font-size: 14px;">GIS</span></a>&nbsp;&nbsp;
                        <a href="../DataAssetsStatistics/AssetsStatistics.aspx" target="_blank"><span style="font-size: 14px;"><%: lang.Get("Statistical data assets")%></span></a>&nbsp;&nbsp;
                    </div>
                    <div class="search_input;" style="position: relative">
                        <span class="s_ipt_wr">
                            <asp:TextBox runat="Server" CssClass="s_ipt fe-search" ID="txtKeyword"></asp:TextBox> 
                        </span><span class="bg s_btn_wr" style="margin-left: 12px;">
                        <input  type="button" id="btnSearch" class="bg s_btn" value="<%: lang.Get("SPACE_Search") %>" /></span>
                        <span style="margin-left: 12px; vertical-align: middle; margin-bottom: 5px;">
                            <a id="classfile" href="#" style="text-decoration: underline;"><%: lang.Get("CLASSFILE")%></a>
                        </span>
                            <%--<asp:Button runat="Server" ID="btnSearch" CssClass="bg s_btn" Text="搜 索"  />--%>
                       <%-- </span><span class="bg s_btn_wr" style="margin-left: 12px;">
                            <asp:Button runat="Server" ID="btnTeamSearch" CssClass="bg s_btn" Text="课题组" />
                        </span>--%>
                        <input type="hidden" id="targetValue" name="targetValue" runat="server" />
                        <input type="hidden" id="bizValue" name="bizValue" runat="server" />
                        <div id="search_type" style="clear: left">
                            <span onclick="searchtype(0,'txtKeyword');" style="cursor: pointer;"><%: lang.Get("SPACE_Target") %></span>｜<span
                                onclick="searchtype(1,'txtKeyword');" style="cursor: pointer;"><%: lang.Get("SPACE_Business") %></span>
                        </div>
                    </div>
                </div>
            </div>
             
           </div>
                
           </div>
                <%--   </form>--%>
            </div>
            <%--  <div class="clear">
            </div>--%>
        </div>
        
      <div class="main" style="width: 100%; height:100%; background: white">
            <asp:HiddenField runat="server" ID="hfCurrentPath" Value="" />
            <%--  <div class="directory-menu" style="float: left">
                <%: lang.Get("FILE_PATH")%>
                <asp:TextBox ID="tbCurrentPath" runat="server" CssClass="fe-current-path" />
               
                <a href="javascript:void(0)" class="cmd-jump button">
                    <%: lang.Get("GO_TO_FOLDER")%></a>
              
            </div>
            <div class="top-search directory-menu" align="right" style="padding: 5px;">--%>
            <%-- <%: lang.Get("LANGUAGE") %>--%>
            <%-- <asp:Literal runat="server" Text="" ID="ltrLanguage"></asp:Literal>
                <%: lang.Get("QUICK_SERACH") %><asp:TextBox ID="tbSearchKeyword" runat="server" class="fe-search" />
            </div>--%>
          
           <div class="content-menu">
                <ul class="content-menu-bar">
                    <li style="width:17%">
                        <span id="current_space_name" class="cmd-selectall"></span>
                       <%-- <asp:Label ID="current_space_name" runat="server" CssClass="cmd-selectall"></asp:Label>--%>
                    </li>
                    <li><a href="javascript:void(0)" class="cmd-newdirectory">
                        <%: lang.Get("NEW_FOLDER")  %></a></li>
                    <li><a href="javascript:void(0)" class="cmd-upload">
                        <%: lang.Get("UPLOAD")  %></a></li>
                   <%-- <li><a href="javascript:void(0)" class="cmd-download">
                        <%: lang.Get("DOWNLOAD")  %></a></li>--%>
                   <%-- <li><a href="javascript:void(0)" class="cmd-home">
                        <%: lang.Get("MAIN_FOLDER")%></a></li>--%>
                    <%--<li><a href="javascript:void(0)" class="cmd-uponelevel">
                        <%: lang.Get("UP_ONE_LEVEL")%></a></li>--%>
                    <li><a href="javascript:void(0)" class="cmd-back">
                        <%: lang.Get("BACK")%></a></li>
                    <%-- <li><a href="javascript:void(0)" class="cmd-forward">
                        <%: lang.Get("FORWARD")%></a></li>
                    <li><a href="javascript:void(0)" class="cmd-reload">
                        <%: lang.Get("RELOAD")%></a></li>--%>
                    <li><a href="javascript:void(0)" class="cmd-change-mode cmd-table-mode" rel="table">
                        <%: lang.Get("DETAIL_VIEW")%></a></li>
                        <li style="width:20px"><span>&nbsp&nbsp&nbsp</span></li>

                     <li style="height:100%"> 
                     <select style=" margin-top:5px; margin-right:15px;  height:22px;" onchange="t(this)"> 
                        <option value="date"> <%: lang.Get("SPACE_TIME") %></option>
                        <option value="mubiao"><%: lang.Get("SPACE_Target") %></option>
                        <option value="yewu"><%: lang.Get("SPACE_Business") %></option>
                        <option value="daxiao"><%: lang.Get("FILE_SIZE") %></option>
                        <option value="geshi"><%: lang.Get("SPACE_type") %></option>
                        
                     </select>
                     <input type="hidden" id="hidpath" />
                     </li>
                 <%--   <li><a href="javascript:void(0)" class="cmd-change-mode cmd-thumb-mode" rel="thumb">
                        <%: lang.Get("THUMB_VIEW")%></a></li>--%>
                         <div id="pag" style="width:100%; border:0px;" class="easyui-pagination" data-options="total:100,displayMsg:'显示 {from} 到 {to} 一共有 {total} 条'"></div>
                   <%-- <li class="fe-folder-info"></li>--%>
                </ul>
                
                 
            </div>
            <script type="text/javascript">
               
            </script>
            <div style=" height:100%; margin:0px; padding:0px">
              <div id="div_left" style="float: left; width: 17%; height: 100%; border-right: 1px solid #D4D4D4;
                    margin: 0px 3px 0px 0px; overflow: hidden">
                    <div id="menu_list" style="width: 100%; height: 100%;">
                        <%-- class="accordion accordion-noborder"--%>
                        <h3>
                            <a href="#"><%: lang.Get("SPACE_File_Management") %></a></h3>
                        <div title="" style="padding: 10px; padding-left: 30px; height:95%" >
                            <div id="file_tree" style="float: left; width: 210%;  margin: 1px;">
                            </div>
                        </div>
                        <h3>
                            <a href="#"><%: lang.Get("SPACE_Space_selection") %></a></h3>
                        <div>
                            <asp:Literal runat="server" Visible="true" Text="" ID="LiteralSpace"></asp:Literal>
                        </div>
                        <h3>
                            <a href="#"><%: lang.Get("SPACE_Shared_Submit") %></a></h3>
                        <div>
                            <asp:Literal runat="server" Visible="true" Text="" ID="listDiv"></asp:Literal>
                        </div>
                    </div>
                </div>

                <asp:HiddenField ID="txtNavigate" runat="server" />
             <div id="divNavigate" runat="server" style="font-size:1em;margin:0.5em;line-height: 1.5"></div>
             <div style="float: left; width: 82%; height: 100%; overflow-x: hidden">
             

                 <div class="content-list" id="divid" >  </div>
  
              </div>



            </div>
        </div>

    
   </form>
</body>

<script type="text/javascript">


    $(function () {
        $('#menu_list').accordion(); //({ animate: false, fit: true, border: false }); //.accordion()
        $('#menu_list div[onclick]:eq(0)').click();

        //        if (g_isDataManage == true) {
        //            obj = $(".ui-accordion-header")[2];
        //            $(obj).css({ visibility: "hidden" });
        //        }

    });
</script>
</html>
<script type="text/javascript">



    //#region 弹出层
    //{html:'', title:'', width:100, height:90}
    function popwindows(dialogobj) {
        var dialog = {
            dialog_mask: 'dialog_bg',
            dialog_id: 'dialog_id',
            dialog_close: 'dialog_close',
            init: function () {
                $.extend(dialog, dialogobj);
                dialog.checkId();
                dialog.createdialog();
            },
            checkId: function () {
                if ($("#" + dialog.dialog_id).length > 0) {
                    $("#" + dialog.dialog_mask, "#" + dialog.dialog_id).remove();
                }
            },
            createdialog: function () {
                var _dialoghtml = [];
                _dialoghtml.push('<div id="dialog_bg" style="background:#000;width:100%;height:100%;position:fixed; _position:absolute; top:0;left:0; z-index: 20000;filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5; "></div>');
                _dialoghtml.push('<div id="' + dialog.dialog_id + '" style="background:#fff;position: absolute; z-index: 20001;border:1px solid #ccc;">');
                _dialoghtml.push('<div style="background:#d5d5d5;height:24px;line-height:24px;padding:0 5px;"><span style="width:30px;float:right;cursor:pointer" title=' + lang.close + ' id="dialog_close">' + lang.close + '</span><span>');
                _dialoghtml.push(dialog.title);
                _dialoghtml.push('</span></div><div>');
                _dialoghtml.push(dialog.html);
                _dialoghtml.push('</div><div style="height:1px;clear:both;"></div></div>');
                $('body').append(_dialoghtml.join(''));

                $('#' + dialog.dialog_close).bind('click', function () {
                    dialog.close();
                });

                $("#" + dialog.dialog_id).css({ width: dialog.width + "px" });
                if (dialog.height) { $("#" + dialog.dialog_id).css({ height: dialog.height + "px" }); }

                $("#" + dialog.dialog_id).css({ left: ($(window).width() - $("#" + dialog.dialog_id).width()) / 2 + $(window).scrollLeft() + "px",
                    top: ($(window).height() - $("#" + dialog.dialog_id).height()) / 2 + $(window).scrollTop() + "px"
                });
            },
            close: function () {
                $("#" + dialog.dialog_mask + ",#" + dialog.dialog_id).remove();
            }
        }
        dialog.init();
        return dialog;
    }
    //#endregion
    var dataCache = [
                { "label": "塔里木油田" },
                { "label": "大庆油田" },
                { "label": "采油厂" },
                { "label": "八厂" },
                { "label": "井123" },
                { "label": "你必须知道的.NET" }
            ];

    $(function () {


        $("#txtKeyword").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "../../Handlers/SearchAutoComplete.ashx?optype=query",
                    dataType: "json",
                    data: {
                        featureClass: "P",
                        style: "full",
                        maxRows: 10,
                        keyw_startsWith: request.term
                    },
                    success: function (data) {
                        response($.map(data, function (item) {
                            return {
                                label: item.Keyword,
                                value: item.Keyword
                            }
                        }));
                    }
                });
            },
            minLength: 1
        });

        $("h3[class='t ec_nowrap'] a").click(function () {
            window.open("WatchFileView.aspx?id=" + $(this).attr("id"), "_blank");
        });

        $("#btnSearch").click(function () {
            $.ajax({
                url: "../../Handlers/SearchAutoComplete.ashx?optype=add",
                dataType: "json",
                data: {
                    keyw: $("#txtKeyword").val()
                },
                success: function (data) {

                }
            });
            return true;
        });

    });



    //#endregion
</script>
